<template>
  <div @click="toworkbench" class="home">hello</div>
</template>

<script>
// @ is an alias to /src

export default {
  name: "Home",
  beforeRouteLeave(to, from, next) {
    console.log("to", to, from, next);
    next();
  },

  methods: {
    toworkbench() {
      this.$router.push({ name: "Workbench" });
    },
  },
};
</script>

<style >
.home {
  cursor: pointer;
}
</style>
